import request from '@/utils/request'
export function manufacturerList(params) {
    return request({
        url: '/operate/proSuppliers/queryProSupplierList',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'get',
        data: params,
        params: {
            pageNum: params.pageNum,
            pageSize: params.pageSize,
            phoneNumber:params.phoneNumber,
            realName:params.realName

        }
    })
}
export function delManufacturer(rowId) {
    return request({
        url: '/operate/proSuppliers/deleteProSupplier/'+rowId,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'delete',
    })
}
export function createManufacturer(data) {
    return request({
        url: '/operate/proSuppliers/saveProSupplier',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'post',
        data
    })
}
export function batchDel(idss) {
    return request({
        url: '/operate/proSuppliers/batchDeleteProSupplier?ids='+idss,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'post',
    })
}

export function updateManu(data) {
    return request({
        url: '/operate/proSuppliers',
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        },
        method: 'put',
        data
    })
}